package com.gyh.stlserver.util;

import cn.hutool.crypto.digest.MD5;
import com.gyh.stlserver.constants.Constants;
import org.springframework.util.DigestUtils;

public class PasswordUtil {
    public static String md5encryption(String password){
        password = password+ Constants.SALT;
        return DigestUtils.md5DigestAsHex(password.getBytes());
    }
}
